package com.ruoyi.my.service.impl;

import com.ruoyi.my.domain.UserInfo;
import com.ruoyi.my.mapper.UserInfoMapper;
import com.ruoyi.my.service.UserInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserInfoServiceImpl implements UserInfoService {

    @Resource
    UserInfoMapper userInfoMapper;


    @Override
    public List<UserInfo> list() {
        return userInfoMapper.list();
    }

    @Override
    public int add(UserInfo userInfo) {
        return userInfoMapper.add(userInfo);
    }
}
